#include "obj.h"
#pragma once
class CDm : public dmsoft
{
private:
	long m_x;
	long m_y;
	//bool m_isAction;
public:
	CDm();
	~CDm();
	long getX();
	long getY();
	bool RunScript(CString strScript, int nAction);
	bool RunScript(CString strScript);
	bool RunScript(CString strScript, CString strData);
	CString RunScripts(CString strScript, CString strData);
	bool RunScript(CString strScript, int nType, CString strData);
	bool RunScript(CString strScript, long *x, long *y);
	CString RunScriptEx(CString strScript);
	CString RunScriptEx(CString strPoint, CString strData, int nType, float fSim, CString strOffsetCol);
	CString RunScriptEx(CString strPoint, CString strData, int nType);
	bool RunScript(CString strPoint, CString strData, CString strType, CString strAction, CString strRnd);
	bool RunScript(CString strPoint, CString strData, CString strType, CString strAction, CString strRnd, float fsim, CString strOffsetCol);
	bool RunScriptEx(CString strPoint, CString strData, int nType, int nAction, int* x, int* y);

	bool dmClick(OcrBase ocrInfo);
	bool dmDoubleClick(OcrBase ocrInfo);
	bool runScript(long index, CString str);
	bool FindCol(OcrBase ocrInfo);
	bool FindMulCol(OcrBase ocrInfo);
	bool CmpCol(OcrBase ocrInfo);
	bool FindPic1(OcrBase ocrInfo);
	bool FindStrFast1(OcrBase ocrInfo);
	bool FindStr(OcrBase ocrInfo);
	bool FindColBlock(OcrBase ocrInfo);
	CString FindImgEx(CString strOcr);
	CString FindImgExs(CString strOcr);
	void Click(long x,long y);
	void CDm::Click(long x, long y, long rndX, long rndY);
};

